//
//  UIImage+MyImage.h
//  mffm
//
//  Created by linaicai on 14-5-29.
//  Copyright (c) 2014年 li naicai. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (MyImage)
#pragma mark- 通用方法
    //通过颜色来生成一个纯色图片
+ (UIImage *)imageFromColor:(UIColor *)color rect:(CGRect)rect;
+ (UIImage*)imageFromView:(UIView*)view;

+ (instancetype)resizeImgWithName:(NSString*) imgName;
- (UIImage*) imageWithSize:(CGSize) size;
+ (UIImage*)resizeImage:(UIImage*)image withWidth:(CGFloat)width withHeight:(CGFloat)height;
-(UIImage*)getSubImage:(CGRect)rect;
- (UIImage*)cutImageWithRadius:(int)radius;
@end
